package com.zp.bean.common;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * define java bean for base content, include primary key,title,update time and top
 * field
 * 
 * @author chenlijun08@gmail.com
 * 
 * @version 1.0
 * 
 * @date 2014/2/26
 * 
 */
@XmlRootElement
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ContentBaseVo implements Serializable {
	protected static final long serialVersionUID = 1L;
	protected int id;
	// content title
	protected String title;
	// update time
	protected Date operationTime;
	// whether stick
	protected String top;
	// summary of content
	protected String summary;
	// min image of title
	protected String titleImage;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getOperationTime() {
		return operationTime;
	}

	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}

	public String getTop() {
		return top;
	}

	public void setTop(String top) {
		this.top = top;
	}

	public String getSummary() {
		return summary;
	}

	public String getTitleImage() {
		return titleImage;
	}

	public void setTitleImage(String titleImage) {
		this.titleImage = titleImage;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

}
